<!-- <page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="add()" nz-button nzType="primary">新建</button>
  </ng-template>
</page-header> -->

<nz-card>

  <!-- 表单 -->

  <div class="mb-md">
    <sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
  </div>

  <!-- 按钮 -->

  <button nz-button (click)="add()" [nzType]="'primary'">
    <i nz-icon nzType="plus"></i> <span>新建</span>
  </button>

  <ng-container *ngIf="selectedRows.length > 0">
    <button nz-button (click)="confirm()" [nzType]="'danger'" nzGhost="true">
      <i nz-icon nzType="delete"></i><span>批量删除</span>
    </button>
  </ng-container>

  <!-- table 列表 -->

  <st class="mt-sm" #st [data]="url" [columns]="columns" [req]="{method:'get'}" (change)="change($event)"
    [scroll]="{x: '1300px'}">

    <!-- 自定义展示，如标签 -->
    <!-- <ng-template st-row="custom" let-item let-index="index" let-column="column">

          <nz-tag *ngFor="let it of item?.tags" [nzColor]="it.color">{{it.name}}</nz-tag>
  
        </ng-template> -->
  </st>

</nz-card>